package com._5704.website.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RegisterForm {
    @NotNull(message = "电话不能为空")
    @Email(message = "邮箱格式不正确")
    private String id;

    @NotNull(message = "密码不能为空")
    private String pwd;

    @NotNull(message = "验证码不能为空")
    private String code;

    @NotNull(message = "邀请码不能为空")
    private String inviteCode;
}
